package com.plian.system.service.ms;

import com.plian.Tools.pagedata.PageData;
import com.plian.system.entity.ms.QuarterInspect;
import com.plian.system.model.R;
import com.plian.system.mybatis.base.BaseService;

import javax.servlet.http.HttpServletResponse;
import java.io.OutputStream;
import java.util.List;

/**
 * 季度监督检查报告表服务类
 *
 * @author xiaohu
 */
public interface IQuarterInspectService extends BaseService<QuarterInspect> {

	/**
	 * 校验编码
	 *
	 * @param id
	 * @param code
	 * @return
	 */
	Boolean checkIsExisted(Long id, String code);
	/**
	 * 保存或新增,包含子表
	 *
	 * @param quarterInspect
	 * @return
	 */
	Boolean submit(QuarterInspect quarterInspect);

	/**
	 * 校验是否能取消审核和变更
	 *
	 * @param id
	 * @return
	 */
	Boolean checkCancel(Long id);

	/**
	 * 填报树
	 * @param quarterInspect
	 * @return
	 */
	R initAdd(QuarterInspect quarterInspect);

	List<PageData> orgBydate(PageData pageData);

	/**
	 * 报表导出
	 * @param pdlist
	 * @param response
	 * @param os
	 */
	void exportExcel(List<PageData> pdlist, HttpServletResponse response, OutputStream os) ;


}
